/*----------------------------------------------------------------------------*\
| /gamemode/cl_goals.lua               | goals system                    | CLI |
\*----------------------------------------------------------------------------*/

INGOALAREA    = false

HELP_GOALIN   = true
HELP_GOALOUT  = true

local ply = LocalPlayer()

function GM:Think()
	if ( INGOALAREA and HELP_GOALIN ) then
		//SendChatMessage( "You're in the goal area! Stay here until the end of the round to win!", CHAT_HELP)
		HELP_GOALIN = false
	end
	
	if ( !INGOALAREA and !HELP_GOALIN and HELP_GOALOUT ) then
		//SendChatMessage( "You've left the goal area! Be sure to return before the round time is up!", CHAT_HELP )
		HELP_GOALOUT = false
	end
end 

function UpdateGoalstat( um )
	INGOALAREA = um:ReadBool()
end
usermessage.Hook("InGoal", UpdateGoalstat)
